Using Word template(.dot) through DXL

Hello,

I have a word template test.dot, I wanna use this for template for word document creation by using DXL,I dnt want to use RPE for this.
Can any one guide me Please.

Best regards
SystemAdmin - Fri Apr 27 03:28:48 EDT 2012

Re: Using Word template(.dot) through DXL
cliff.sadler - Fri Apr 27 09:12:13 EDT 2012

What version of DOORS are you using?

Why not use Word Export and specify the .dot as your templatE?

Re: Using Word template(.dot) through DXL
llandale - Fri Apr 27 12:28:47 EDT 2012

I think he's asking how does he define the "oleMethod" to attach such a template.

Re: Using Word template(.dot) through DXL
SystemAdmin - Mon Apr 30 04:50:42 EDT 2012

llandale - Fri Apr 27 12:28:47 EDT 2012
I think he's asking how does he define the "oleMethod" to attach such a template.

True.. I need to use the template through "oleMethods".

Re: Using Word template(.dot) through DXL
SystemAdmin - Mon Apr 30 05:18:34 EDT 2012

SystemAdmin - Mon Apr 30 04:50:42 EDT 2012
True.. I need to use the template through "oleMethods".

Try this:

string TemplateFullPath = "c:\\My Template.dot"
OleAutoObj ObjWord = oleCreateAutoObject("Word.Application")
 
OleAutoObj ObjDocuments
oleGet(ObjWord, "Documents", ObjDocuments)
 
OleAutoArgs autoArgs = create()
clear autoArgs
put(autoArgs, "Template", TemplateFullPath)
OleAutoObj ObjDocument
oleMethod(ObjDocuments, "Add", autoArgs, ObjDocument)

Re: Using Word template(.dot) through DXL
SystemAdmin - Mon Apr 30 06:03:15 EDT 2012

SystemAdmin - Mon Apr 30 05:18:34 EDT 2012

Try this:

string TemplateFullPath = "c:\\My Template.dot"
OleAutoObj ObjWord = oleCreateAutoObject("Word.Application")
 
OleAutoObj ObjDocuments
oleGet(ObjWord, "Documents", ObjDocuments)
 
OleAutoArgs autoArgs = create()
clear autoArgs
put(autoArgs, "Template", TemplateFullPath)
OleAutoObj ObjDocument
oleMethod(ObjDocuments, "Add", autoArgs, ObjDocument)

Hey thank you so much Adamarla...
This is what I was looking for.

Re: Using Word template(.dot) through DXL
SystemAdmin - Mon Apr 30 06:07:49 EDT 2012

SystemAdmin - Mon Apr 30 06:03:15 EDT 2012
Hey thank you so much Adamarla...
This is what I was looking for.

You're welcome
Adam